import { type Ref } from 'vue'
export const collapseProps = {
    modelValue: {
        type: Array,
        default: []
    },
    accordion: {
        type: Boolean,
        default: false
    }
}
export const collapseItemProps = {
    name: {
        type: String,
        required: true
    },
    title: {
        type: String
    },
    disabled: {
        type: Boolean,
        default: false
    }
}
// 作为provide/inject的key
export const collapseContenxKey = Symbol('collapseContextKey')

// props.ts
export interface CollapseContext {
    activeNames: Ref<Array<string>>;
    handleItemClick: (name: string | number) => void;
}